Spaces:
Runtime error
Runtime error
Jyotiyadav
commited on
Update app.py
Browse files
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 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
|
|
|
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()
|