Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
#23
by
peterlllmm
- opened
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import gradio as gr
|
|
| 6 |
import spaces
|
| 7 |
|
| 8 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 9 |
-
print(f"🚀 Running on
|
| 10 |
|
| 11 |
# --- Global Model Initialization ---
|
| 12 |
MODEL = None
|
|
@@ -108,7 +108,7 @@ with gr.Blocks() as demo:
|
|
| 108 |
with gr.Row():
|
| 109 |
with gr.Column():
|
| 110 |
text = gr.Textbox(
|
| 111 |
-
value="Now let's make my mum's favourite. So three mars bars into the pan. Then
|
| 112 |
label="Text to synthesize (max chars 300)",
|
| 113 |
max_lines=5
|
| 114 |
)
|
|
|
|
| 6 |
import spaces
|
| 7 |
|
| 8 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 9 |
+
print(f"🚀 Running on devicersok: {DEVICE}")
|
| 10 |
|
| 11 |
# --- Global Model Initialization ---
|
| 12 |
MODEL = None
|
|
|
|
| 108 |
with gr.Row():
|
| 109 |
with gr.Column():
|
| 110 |
text = gr.Textbox(
|
| 111 |
+
value="Now let's make my mum's favourite. So three mars bars into the pan. Then suck me the tuna and just stir for a bit, just let the chocolate and fish infuse. A sprinkle of olive oil and some tomato ketchup. Now smell that. Oh boy this is going to be incredible.",
|
| 112 |
label="Text to synthesize (max chars 300)",
|
| 113 |
max_lines=5
|
| 114 |
)
|