laxsvips commited on
Commit
3a79c61
1 Parent(s): c745ef9

Initial commit

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import generate_text
2
+ import gradio
3
+
4
+ def generate_text():
5
+ result = chat.generate_text()
6
+ return result
7
+
8
+ generate_text_gr = gradio.Interface(
9
+ fn=generate_text,
10
+ inputs=None,
11
+ outputs="text",
12
+ title="Generate Character and Dialogue",
13
+ description="An API to check if the API is working"
14
+ )
15
+
16
+ genesis_app = gradio.TabbedInterface([generate_text_gr], ["Generate Character and Dialogue"])
17
+ genesis_app.launch()