Sadok2109 commited on
Commit
6cd9f8a
·
verified ·
1 Parent(s): fcbb3f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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()