Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
from transformers import AutoModelForCausalLM, AutoProcessor
|
2 |
import torch
|
3 |
import gradio as gr
|
@@ -42,4 +45,4 @@ demo = gr.Interface(
|
|
42 |
description="Multimodal Medical Assistant: upload an image and ask a medical question."
|
43 |
)
|
44 |
|
45 |
-
demo.launch()
|
|
|
1 |
+
from huggingface_hub import login
|
2 |
+
login("HUGGINGFACE_API_KEY")
|
3 |
+
|
4 |
from transformers import AutoModelForCausalLM, AutoProcessor
|
5 |
import torch
|
6 |
import gradio as gr
|
|
|
45 |
description="Multimodal Medical Assistant: upload an image and ask a medical question."
|
46 |
)
|
47 |
|
48 |
+
demo.launch()
|