gerglitzen commited on
Commit
eb50bc8
·
1 Parent(s): 227a447
Files changed (1) hide show
  1. app.py +19 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ title = "Ask Rick a Question"
4
+ description = """
5
+ The bot was trained to answer questions based on Rick and Morty dialogues. Ask Rick anything!
6
+ <img src="https://huggingface.co/spaces/course-demos/Rick_and_Morty_QA/resolve/main/rick.png" width=200px>
7
+ """
8
+
9
+ article = "Check out [the original Rick and Morty Bot](https://huggingface.co/spaces/kingabzpro/Rick_and_Morty_Bot) that this demo is based off of."
10
+
11
+ gr.Interface(
12
+ fn=predict,
13
+ inputs="textbox",
14
+ outputs="text",
15
+ title=title,
16
+ description=description,
17
+ article=article,
18
+ examples=[["What are you doing?"], ["Where should we time travel to?"]],
19
+ ).launch()