tomrb commited on
Commit
342de3e
1 Parent(s): 27348ca

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ description = """
4
+ When in legal doubt, you better call BLOOM! Ask BLOOM any legal question:
5
+ <img src="https://huggingface.co/spaces/tomrb/bettercallbloom/resolve/main/img.jpeg" width=200px>
6
+ """
7
+ title = "Better Call Bloom!"
8
+ examples = [["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
9
+
10
+
11
+
12
+ def greet(name):
13
+ return "Hello " + name + "!"
14
+
15
+ demo = gr.Interface(
16
+ fn=greet,
17
+ inputs=gr.Textbox(lines=2, placeholder="Write your question here..."),
18
+ outputs="text",
19
+ title=title,
20
+ description=description
21
+ )
22
+ demo.launch()