Spaces:
Running
Running
aakash0563
commited on
Commit
•
2768c94
1
Parent(s):
0521c4d
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@
|
|
35 |
# iface.launch(debug=True, share=True) # Launch the Gradio app
|
36 |
|
37 |
|
38 |
-
|
39 |
import google.generativeai as genai
|
40 |
import os
|
41 |
import os
|
@@ -43,8 +43,12 @@ from pdf2image import convert_from_path
|
|
43 |
from PIL import Image
|
44 |
import pdf2image
|
45 |
import numpy as np
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
-
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
48 |
from youtube_transcript_api import YouTubeTranscriptApi
|
49 |
load_dotenv()
|
50 |
import gradio as gr
|
|
|
35 |
# iface.launch(debug=True, share=True) # Launch the Gradio app
|
36 |
|
37 |
|
38 |
+
|
39 |
import google.generativeai as genai
|
40 |
import os
|
41 |
import os
|
|
|
43 |
from PIL import Image
|
44 |
import pdf2image
|
45 |
import numpy as np
|
46 |
+
GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
|
47 |
+
|
48 |
+
# Now you can use hugging_face_api_key in your code
|
49 |
+
|
50 |
+
genai.configure(api_key=GOOGLE_API_KEY)
|
51 |
|
|
|
52 |
from youtube_transcript_api import YouTubeTranscriptApi
|
53 |
load_dotenv()
|
54 |
import gradio as gr
|