Spaces:
Running
Running
Create app.py
#1
by
ssaiteja16
- opened
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from model import generate_response
|
3 |
+
|
4 |
+
def chatbot(prompt):
|
5 |
+
return generate_response(prompt)
|
6 |
+
|
7 |
+
iface = gr.Interface(fn=chatbot, inputs="text", outputs="text", title="My AI Chatbot")
|
8 |
+
|
9 |
+
if __name__ == "__main__":
|
10 |
+
iface.launch()
|