lu-ny commited on
Commit
3f3b8a0
·
1 Parent(s): 3131b68

Update app.py

Browse files

fix indentation because colab is dumb

Files changed (1) hide show
  1. app.py +16 -15
app.py CHANGED
@@ -109,20 +109,21 @@ additional_inputs=[
109
  ]
110
 
111
  def launch_interface():
112
- iface = gr.Interface(
113
- fn=generate,
114
- inputs=[
115
- gr.Textbox("", label="Book Genres (comma-separated, or leave blank!)"),
116
- gr.Textbox("", label="Book Themes (comma-separated, or leave blank!)"),
117
- gr.Textbox("", label="Writing Tone (comma-separated, or leave blank!)"),
118
- ],
119
- additional_inputs=additional_inputs,
120
- outputs="text",
121
- live=False,
122
- title="Novel Title and Summary Generator",
123
- theme='ParityError/Interstellar',
124
- )
125
 
126
  iface.launch(show_api=False)
127
-
128
- launch_interface()
 
 
109
  ]
110
 
111
  def launch_interface():
112
+ iface = gr.Interface(
113
+ fn=generate,
114
+ inputs=[
115
+ gr.Textbox("", label="Book Genres (comma-separated, or leave blank!)"),
116
+ gr.Textbox("", label="Book Themes (comma-separated, or leave blank!)"),
117
+ gr.Textbox("", label="Writing Tone (comma-separated, or leave blank!)"),
118
+ ],
119
+ additional_inputs=additional_inputs,
120
+ outputs="text",
121
+ live=False,
122
+ title="Novel Title and Summary Generator",
123
+ theme='ParityError/Interstellar',
124
+ )
125
 
126
  iface.launch(show_api=False)
127
+
128
+ if __name__==__main__:
129
+ launch_interface()