Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ languages = {
|
|
| 73 |
# Global variables to hold component references
|
| 74 |
components = {}
|
| 75 |
dotenv.load_dotenv()
|
| 76 |
-
seamless_client = Client("https://facebook-seamless-m4t.hf.space/--replicas/
|
| 77 |
HuggingFace_Token = os.getenv("HuggingFace_Token")
|
| 78 |
hf_token = os.getenv("HuggingFace_Token")
|
| 79 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
@@ -163,7 +163,7 @@ def save_image(image_input, output_dir="saved_images"):
|
|
| 163 |
|
| 164 |
def process_image(image_file_path):
|
| 165 |
print("Entering process_image function")
|
| 166 |
-
client = Client("https://tonic1-official-qwen-vl-chat.hf.space/--replicas/
|
| 167 |
try:
|
| 168 |
result = client.predict(
|
| 169 |
"Describe this image in detail, identify every detail in this image. Describe the image the best you can.",
|
|
|
|
| 73 |
# Global variables to hold component references
|
| 74 |
components = {}
|
| 75 |
dotenv.load_dotenv()
|
| 76 |
+
seamless_client = Client("https://facebook-seamless-m4t-v2-large.hf.space/--replicas/2bmbx/") #TruEra
|
| 77 |
HuggingFace_Token = os.getenv("HuggingFace_Token")
|
| 78 |
hf_token = os.getenv("HuggingFace_Token")
|
| 79 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 163 |
|
| 164 |
def process_image(image_file_path):
|
| 165 |
print("Entering process_image function")
|
| 166 |
+
client = Client("https://tonic1-official-qwen-vl-chat.hf.space/--replicas/4t5dh/") # TruEra
|
| 167 |
try:
|
| 168 |
result = client.predict(
|
| 169 |
"Describe this image in detail, identify every detail in this image. Describe the image the best you can.",
|