tdurzynski commited on
Commit
862f3d6
·
verified ·
1 Parent(s): 2b29150

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -24
app.py CHANGED
@@ -1,27 +1,3 @@
1
- import gradio
2
- print("Installed gradio version:", gradio.__version__)
3
- import gradio_client
4
- print("Installed gradio_client version:", gradio_client.__version__)
5
-
6
- import gradio_client.utils as gr_utils
7
-
8
- def patched_get_type(schema):
9
- # Check for a boolean schema
10
- if isinstance(schema, bool):
11
- return "Any" # Return a default type; adjust as needed.
12
- # Otherwise, run the original logic.
13
- # Note: This example assumes you can call the original if needed,
14
- # otherwise, you might need to inline the rest of the function.
15
- if "const" in schema:
16
- # (Original logic here; you can copy over the code from the package.)
17
- # For demonstration, we'll simply return a placeholder:
18
- return "ConstType"
19
- # You need to add the remaining conditions based on the original implementation.
20
- return "Unknown"
21
-
22
- # Apply the monkey patch.
23
- gr_utils.get_type = patched_get_type
24
-
25
  import gradio as gr
26
  from langdetect import detect
27
  from gtts import gTTS
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
  from langdetect import detect
3
  from gtts import gTTS