Keyven commited on
Commit
bb8d3ff
·
1 Parent(s): 9a42cbf

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def chat_with_kiki_gpt(user_input):
4
+ return f"KIKI-GPT: {user_input}"
5
+
6
+ interface = gr.Interface(
7
+ fn=chat_with_kiki_gpt,
8
+ inputs=gr.inputs.Textbox(lines=5, placeholder="Type your message to KIKI-GPT here..."),
9
+ outputs=gr.outputs.Textbox(),
10
+ title="KIKI-GPT",
11
+ description="Welcome to KIKI-GPT - a project on HuggingFace Spaces using Microsoft's DialoGPT. One of the fastest and best performing models for robotics! Created by Keyvan Hardani. For inquiries, contact: [email protected].",
12
+ live=True
13
+ )
14
+
15
+ interface.load("models/microsoft/DialoGPT-medium")
16
+ interface.launch()