Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
|
|
|
|
| 5 |
|
| 6 |
-
gr.ChatInterface(
|
| 7 |
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 8 |
# iface.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from prova import Prova
|
| 3 |
+
prova_instance = Prova()
|
| 4 |
|
| 5 |
+
def generate_message(message, history):
|
| 6 |
+
output = prova_instance.execute(message, history)
|
| 7 |
+
return output
|
| 8 |
|
| 9 |
+
gr.ChatInterface(generate_message).launch()
|
| 10 |
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 11 |
# iface.launch()
|