Jyotiyadav commited on
Commit
716f386
·
verified ·
1 Parent(s): aeba39c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -64,11 +64,13 @@ def generate_output(input_text):
64
  return result[0]['generated_text']
65
 
66
  # Create a Gradio interface
67
- gr.Interface(
68
- fn="text",
69
- inputs="text",
70
- outputs="text",
71
- title="Email Information Extraction",
72
- description="Extract information from emails based on provided labels.",
73
- theme="compact"
74
- ).launch()
 
 
 
64
  return result[0]['generated_text']
65
 
66
  # Create a Gradio interface
67
+ iface = gr.Interface(fn=generate_output,
68
+ inputs=[
69
+ "text",
70
+ ],
71
+ outputs="text",
72
+ title="Information Extraction with Mistral-7B",
73
+ examples=examples,
74
+ debug=True,
75
+ description="Generate a Information Extraction with OpenLLM.")
76
+ iface.launch()