Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from gradio_client import Client
|
|
|
3 |
import json
|
4 |
import re
|
5 |
from moviepy.editor import VideoFileClip
|
@@ -120,7 +121,7 @@ def get_audiogen(prompt):
|
|
120 |
def get_tango(prompt):
|
121 |
client = Client("https://declare-lab-tango.hf.space/")
|
122 |
result = client.predict(
|
123 |
-
|
124 |
100, # int | float representing numeric value between 100 and 200 in 'Steps' Slider component
|
125 |
4, # int | float representing numeric value between 1 and 10 in 'Guidance Scale' Slider component
|
126 |
api_name="/predict"
|
|
|
1 |
import gradio as gr
|
2 |
from gradio_client import Client
|
3 |
+
import os
|
4 |
import json
|
5 |
import re
|
6 |
from moviepy.editor import VideoFileClip
|
|
|
121 |
def get_tango(prompt):
|
122 |
client = Client("https://declare-lab-tango.hf.space/")
|
123 |
result = client.predict(
|
124 |
+
prompt, # str representing string value in 'Prompt' Textbox component
|
125 |
100, # int | float representing numeric value between 100 and 200 in 'Steps' Slider component
|
126 |
4, # int | float representing numeric value between 1 and 10 in 'Guidance Scale' Slider component
|
127 |
api_name="/predict"
|