tykiww commited on
Commit
1e282db
·
verified ·
1 Parent(s): 0bb2563

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -1,15 +1,13 @@
1
  import gradio as gr
2
 
3
- gr.Markdown("# Instruction Tuning with Unsloth")
4
-
5
  def greet(name):
6
  return "Hello " + name + "!!"
7
 
 
 
8
 
 
 
 
9
 
10
-
11
-
12
- demo = gr.Interface(fn=greet,
13
- inputs="text",
14
- outputs="text")
15
- demo.launch()
 
1
  import gradio as gr
2
 
 
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
+ with gr.Blocks() as demo:
7
+ gr.Markdown("# Instruction Tuning with Unsloth")
8
 
9
+ gr.Interface(fn=greet,
10
+ inputs="text",
11
+ outputs="text")
12
 
13
+ demo.launch()