Spaces:
Running
Running
Remove Concurrency
Browse files- config.ini +1 -1
- demo.py +1 -2
config.ini
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
[server]
|
2 |
host = str:0.0.0.0
|
3 |
port = int:6969
|
4 |
-
workers = int:
|
5 |
|
6 |
[models.names]
|
7 |
gpt2 = str:openai-community/gpt2
|
|
|
1 |
[server]
|
2 |
host = str:0.0.0.0
|
3 |
port = int:6969
|
4 |
+
workers = int:1
|
5 |
|
6 |
[models.names]
|
7 |
gpt2 = str:openai-community/gpt2
|
demo.py
CHANGED
@@ -136,7 +136,6 @@ if __name__ == "__main__":
|
|
136 |
),
|
137 |
gr.Number(label="Percentage of message in text", show_label=True),
|
138 |
],
|
139 |
-
concurrency_limit=5,
|
140 |
)
|
141 |
dec = gr.Interface(
|
142 |
fn=dec_fn,
|
@@ -161,4 +160,4 @@ if __name__ == "__main__":
|
|
161 |
],
|
162 |
)
|
163 |
app = gr.TabbedInterface([enc, dec], ["Encrytion", "Decryption"])
|
164 |
-
app.launch(share=True
|
|
|
136 |
),
|
137 |
gr.Number(label="Percentage of message in text", show_label=True),
|
138 |
],
|
|
|
139 |
)
|
140 |
dec = gr.Interface(
|
141 |
fn=dec_fn,
|
|
|
160 |
],
|
161 |
)
|
162 |
app = gr.TabbedInterface([enc, dec], ["Encrytion", "Decryption"])
|
163 |
+
app.launch(share=True)
|