Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ import re
|
|
2 |
import numpy as np
|
3 |
import wave
|
4 |
import gradio as gr
|
|
|
|
|
5 |
|
6 |
class Animalese:
|
7 |
def __init__(self, letters_file, onload):
|
@@ -61,7 +63,7 @@ def preview_audio(audio_file):
|
|
61 |
return f.read()
|
62 |
|
63 |
# Gradio UI
|
64 |
-
with gr.Blocks() as demo:
|
65 |
gr.Markdown("# Animalese.py Demo")
|
66 |
|
67 |
text_input = gr.Textbox(label="Input Text", placeholder="Enter text to convert to Animalese")
|
|
|
2 |
import numpy as np
|
3 |
import wave
|
4 |
import gradio as gr
|
5 |
+
from blaise import *
|
6 |
+
|
7 |
|
8 |
class Animalese:
|
9 |
def __init__(self, letters_file, onload):
|
|
|
63 |
return f.read()
|
64 |
|
65 |
# Gradio UI
|
66 |
+
with gr.Blocks(theme=secret) as demo:
|
67 |
gr.Markdown("# Animalese.py Demo")
|
68 |
|
69 |
text_input = gr.Textbox(label="Input Text", placeholder="Enter text to convert to Animalese")
|