Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
julicq
/
chattingMachine
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
julicq
commited on
Nov 1, 2023
Commit
17e463c
·
1 Parent(s):
99e13a2
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+8
-0
app.py
ADDED
Viewed
@@ -0,0 +1,8 @@
1
+
import gradio as gr
2
+
3
+
def chatbot_interface(prompt):
4
+
response = answer(prompt)
5
+
return response
6
+
7
+
iface = gr.Interface(fn=chatbot_interface, inputs=prompt_input, outputs=response_output)
8
+
iface.launch()