Spaces:
Build error
Build error
brayden-gg
commited on
Commit
•
1a69cb2
1
Parent(s):
da083b5
only sometimes
Browse files- app.py +4 -5
- requirements.txt +1 -0
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import torch
|
2 |
-
import argparse
|
3 |
import numpy as np
|
4 |
from helper import *
|
5 |
from config.GlobalVariables import *
|
@@ -180,8 +179,8 @@ with gr.Blocks() as demo:
|
|
180 |
writer_slider.change(fn=update_writer_slider, inputs=[writer_slider], outputs=[writer_output], show_progress=False)
|
181 |
target_word.submit(fn=update_writer_word, inputs=[target_word], outputs=[writer_output], show_progress=False)
|
182 |
|
183 |
-
writer1.change(fn=update_chosen_writers, inputs=[writer1, writer2], outputs=[writer_slider, writer_output]
|
184 |
-
writer2.change(fn=update_chosen_writers, inputs=[writer1, writer2], outputs=[writer_slider, writer_output]
|
185 |
|
186 |
with gr.TabItem("Blend Characters"):
|
187 |
with gr.Row():
|
@@ -197,8 +196,8 @@ with gr.Blocks() as demo:
|
|
197 |
|
198 |
char_slider.change(fn=update_char_slider, inputs=[char_slider], outputs=[char_output], show_progress=False)
|
199 |
|
200 |
-
char1.change(fn=update_blend_chars, inputs=[char1, char2], outputs=[char_slider]
|
201 |
-
char2.change(fn=update_blend_chars, inputs=[char1, char2], outputs=[char_slider]
|
202 |
|
203 |
with gr.TabItem("Add Randomness"):
|
204 |
mdn_word = gr.Textbox(label="Target Word", value=" ".join(mdn_words), max_lines=1)
|
|
|
1 |
import torch
|
|
|
2 |
import numpy as np
|
3 |
from helper import *
|
4 |
from config.GlobalVariables import *
|
|
|
179 |
writer_slider.change(fn=update_writer_slider, inputs=[writer_slider], outputs=[writer_output], show_progress=False)
|
180 |
target_word.submit(fn=update_writer_word, inputs=[target_word], outputs=[writer_output], show_progress=False)
|
181 |
|
182 |
+
writer1.change(fn=update_chosen_writers, inputs=[writer1, writer2], outputs=[writer_slider, writer_output])
|
183 |
+
writer2.change(fn=update_chosen_writers, inputs=[writer1, writer2], outputs=[writer_slider, writer_output])
|
184 |
|
185 |
with gr.TabItem("Blend Characters"):
|
186 |
with gr.Row():
|
|
|
196 |
|
197 |
char_slider.change(fn=update_char_slider, inputs=[char_slider], outputs=[char_output], show_progress=False)
|
198 |
|
199 |
+
char1.change(fn=update_blend_chars, inputs=[char1, char2], outputs=[char_slider])
|
200 |
+
char2.change(fn=update_blend_chars, inputs=[char1, char2], outputs=[char_slider])
|
201 |
|
202 |
with gr.TabItem("Add Randomness"):
|
203 |
mdn_word = gr.Textbox(label="Target Word", value=" ".join(mdn_words), max_lines=1)
|
requirements.txt
CHANGED
@@ -7,4 +7,5 @@ tensorboardX==2.5
|
|
7 |
torch==1.11.0
|
8 |
typing_extensions==4.1.1
|
9 |
ffmpeg-python
|
|
|
10 |
|
|
|
7 |
torch==1.11.0
|
8 |
typing_extensions==4.1.1
|
9 |
ffmpeg-python
|
10 |
+
gradio
|
11 |
|