Spaces:
Build error
Build error
Ashhar commited on
Commit ·
62f62db
1
Parent(s): de9be82
testing
Browse files
README.md
CHANGED
|
@@ -7,7 +7,6 @@ sdk: gradio
|
|
| 7 |
sdk_version: 4.36.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
-
license: mit
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 7 |
sdk_version: 4.36.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
|
@@ -114,6 +114,16 @@ outputBox = gr.Markdown(
|
|
| 114 |
label="Output Sentence"
|
| 115 |
)
|
| 116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
with gr.Interface(
|
| 118 |
fn=autocomplete,
|
| 119 |
inputs=inputBox,
|
|
@@ -125,15 +135,7 @@ with gr.Interface(
|
|
| 125 |
css=css
|
| 126 |
) as demo:
|
| 127 |
# demo.load(__attachIp, None, None)
|
| 128 |
-
|
| 129 |
-
"Use Output",
|
| 130 |
-
elem_id="copy-button",
|
| 131 |
-
variant="primary"
|
| 132 |
-
).click(
|
| 133 |
-
fn=lambda x: x,
|
| 134 |
-
inputs=outputBox,
|
| 135 |
-
outputs=inputBox,
|
| 136 |
-
)
|
| 137 |
|
| 138 |
# Launch the app
|
| 139 |
demo.launch(debug=True)
|
|
|
|
| 114 |
label="Output Sentence"
|
| 115 |
)
|
| 116 |
|
| 117 |
+
copyButton = gr.Button(
|
| 118 |
+
"Use Output",
|
| 119 |
+
elem_id="copy-button",
|
| 120 |
+
variant="primary"
|
| 121 |
+
).click(
|
| 122 |
+
fn=lambda x: x,
|
| 123 |
+
inputs=outputBox,
|
| 124 |
+
outputs=inputBox,
|
| 125 |
+
)
|
| 126 |
+
|
| 127 |
with gr.Interface(
|
| 128 |
fn=autocomplete,
|
| 129 |
inputs=inputBox,
|
|
|
|
| 135 |
css=css
|
| 136 |
) as demo:
|
| 137 |
# demo.load(__attachIp, None, None)
|
| 138 |
+
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
|
| 140 |
# Launch the app
|
| 141 |
demo.launch(debug=True)
|