Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import gradio as gr
|
|
| 2 |
import hashlib
|
| 3 |
import tempfile
|
| 4 |
import requests
|
|
|
|
| 5 |
from TTS.utils.manage import ModelManager
|
| 6 |
from TTS.utils.synthesizer import Synthesizer
|
| 7 |
def fx(x:str):
|
|
@@ -41,7 +42,7 @@ def fx_dax(s:str):
|
|
| 41 |
|
| 42 |
def fx_datatable(s:str):
|
| 43 |
a=exec(s)
|
| 44 |
-
return {k: v
|
| 45 |
|
| 46 |
demo=gr.Blocks()
|
| 47 |
with demo:
|
|
|
|
| 2 |
import hashlib
|
| 3 |
import tempfile
|
| 4 |
import requests
|
| 5 |
+
import pandas as pd
|
| 6 |
from TTS.utils.manage import ModelManager
|
| 7 |
from TTS.utils.synthesizer import Synthesizer
|
| 8 |
def fx(x:str):
|
|
|
|
| 42 |
|
| 43 |
def fx_datatable(s:str):
|
| 44 |
a=exec(s)
|
| 45 |
+
return {k: v for k, v in x.items() if isinstance(v,pd.DataFrame)}
|
| 46 |
|
| 47 |
demo=gr.Blocks()
|
| 48 |
with demo:
|