File size: 406 Bytes
3a79c61
 
 
d6af7f4
 
3a79c61
 
 
d6af7f4
3a79c61
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import generate_text
import gradio

def gentext():
    result = generate_text.call_llm()
    return result

generate_text_gr = gradio.Interface(
  fn=gentext,
  inputs=None,
  outputs="text",
  title="Generate Character and Dialogue",
  description="An API to check if the API is working"
)

genesis_app = gradio.TabbedInterface([generate_text_gr], ["Generate Character and Dialogue"])
genesis_app.launch()