Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,6 +7,9 @@ import transformers
|
|
| 7 |
|
| 8 |
import gradio as gr
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
class FormRow(FormComponent, gr.Row):
|
| 11 |
"""Same as gr.Row but fits inside gradio forms"""
|
| 12 |
|
|
|
|
| 7 |
|
| 8 |
import gradio as gr
|
| 9 |
|
| 10 |
+
class FormComponent:
|
| 11 |
+
def get_expected_parent(self):
|
| 12 |
+
return gr.components.Form
|
| 13 |
class FormRow(FormComponent, gr.Row):
|
| 14 |
"""Same as gr.Row but fits inside gradio forms"""
|
| 15 |
|