Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import base64
|
2 |
import os
|
3 |
from huggingface_hub import login
|
@@ -10,10 +15,7 @@ import google.generativeai as genai
|
|
10 |
import gradio as gr # Add Gradio for UI
|
11 |
from PIL import Image as PILImage
|
12 |
|
13 |
-
# Initialize Google API and model
|
14 |
-
import torch
|
15 |
|
16 |
-
device = torch.device("cpu") # Force CPU
|
17 |
import os
|
18 |
GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
|
19 |
genai.configure(api_key=GOOGLE_API_KEY)
|
|
|
1 |
+
# Initialize Google API and model
|
2 |
+
import torch
|
3 |
+
|
4 |
+
device = torch.device("cpu") # Force CPU
|
5 |
+
|
6 |
import base64
|
7 |
import os
|
8 |
from huggingface_hub import login
|
|
|
15 |
import gradio as gr # Add Gradio for UI
|
16 |
from PIL import Image as PILImage
|
17 |
|
|
|
|
|
18 |
|
|
|
19 |
import os
|
20 |
GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
|
21 |
genai.configure(api_key=GOOGLE_API_KEY)
|