Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ def dprocess(command, ddddd):
|
|
| 38 |
return 42
|
| 39 |
|
| 40 |
# Set-up the Gradio UI
|
| 41 |
-
textbox = gr.Textbox(label='Command')
|
| 42 |
# company = gr.Radio(label='Company:',
|
| 43 |
# choices=["aws", "google", "IBM", "Meta", "msft"],
|
| 44 |
# value="aws")
|
|
@@ -46,11 +46,11 @@ textbox = gr.Textbox(label='Command')
|
|
| 46 |
# Create Gradio interface
|
| 47 |
# For the inputs parameter of Interface provide [textbox,company] with outputs parameter of Interface provide prediction
|
| 48 |
demo = gr.Interface(fn=dprocess,
|
| 49 |
-
inputs=[textbox
|
| 50 |
outputs="text",
|
| 51 |
title="operand data automation CLI",
|
| 52 |
-
description="",
|
| 53 |
-
theme=gr.themes.
|
| 54 |
|
| 55 |
demo.queue()
|
| 56 |
demo.launch()
|
|
|
|
| 38 |
return 42
|
| 39 |
|
| 40 |
# Set-up the Gradio UI
|
| 41 |
+
textbox = gr.Textbox(label='Command:')
|
| 42 |
# company = gr.Radio(label='Company:',
|
| 43 |
# choices=["aws", "google", "IBM", "Meta", "msft"],
|
| 44 |
# value="aws")
|
|
|
|
| 46 |
# Create Gradio interface
|
| 47 |
# For the inputs parameter of Interface provide [textbox,company] with outputs parameter of Interface provide prediction
|
| 48 |
demo = gr.Interface(fn=dprocess,
|
| 49 |
+
inputs=[textbox],
|
| 50 |
outputs="text",
|
| 51 |
title="operand data automation CLI",
|
| 52 |
+
description="The description...",
|
| 53 |
+
theme=gr.themes.Soft(),
|
| 54 |
|
| 55 |
demo.queue()
|
| 56 |
demo.launch()
|