Ireneo commited on
Commit
00e43e9
1 Parent(s): 1160c53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -13
app.py CHANGED
@@ -1,16 +1,4 @@
1
  import gradio as gr
2
 
3
  # Load the model
4
- model = gr.Interface.load("models/roneneldan/TinyStories-Instruct-33M")
5
-
6
- # Create the interface
7
- interface = gr.Interface(
8
- fn=model.predict,
9
- inputs=gr.Textbox(prompt="Type a prompt here..."),
10
- outputs=gr.Textbox(),
11
- live=True,
12
- capture_session=True
13
- )
14
-
15
- # Launch the interface
16
- interface.launch()
 
1
  import gradio as gr
2
 
3
  # Load the model
4
+ model = gr.load("models/roneneldan/TinyStories-Instruct-33M").launch()