Spaces:
Sleeping
Sleeping
Add application file
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import yaml
|
| 2 |
-
import pyperclip
|
| 3 |
import gradio as gr
|
| 4 |
-
pyperclip.set_clipboard("windows")
|
| 5 |
|
| 6 |
def get_options(file_path):
|
| 7 |
with open(file_path, 'r') as file:
|
|
@@ -30,7 +30,7 @@ def run_app(file_path='options.yaml'):
|
|
| 30 |
for i, key in enumerate(options.keys()):
|
| 31 |
option_values[key] = input_values[i+1]
|
| 32 |
output = generate_output(topic, option_values)
|
| 33 |
-
|
| 34 |
return output
|
| 35 |
|
| 36 |
interface = gr.Interface(
|
|
|
|
| 1 |
import yaml
|
| 2 |
+
#import pyperclip
|
| 3 |
import gradio as gr
|
| 4 |
+
#pyperclip.set_clipboard("windows")
|
| 5 |
|
| 6 |
def get_options(file_path):
|
| 7 |
with open(file_path, 'r') as file:
|
|
|
|
| 30 |
for i, key in enumerate(options.keys()):
|
| 31 |
option_values[key] = input_values[i+1]
|
| 32 |
output = generate_output(topic, option_values)
|
| 33 |
+
# pyperclip.copy(output)
|
| 34 |
return output
|
| 35 |
|
| 36 |
interface = gr.Interface(
|