logu29 commited on
Commit
4450a9e
·
verified ·
1 Parent(s): 3e2a69d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1,5 +1,4 @@
1
- # In Colab
2
- code = '''
3
  import gradio as gr
4
 
5
  def greet(name):
@@ -7,8 +6,7 @@ def greet(name):
7
 
8
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
9
  iface.launch()
10
- '''
11
 
12
  # Save it as app.py
13
  with open("app.py", "w") as f:
14
- f.write(code)
 
1
+
 
2
  import gradio as gr
3
 
4
  def greet(name):
 
6
 
7
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
8
  iface.launch()
 
9
 
10
  # Save it as app.py
11
  with open("app.py", "w") as f:
12
+ f.write(code)