Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,8 @@ def invoke(url):
|
|
20 |
docs = loader.load()
|
21 |
print(url)
|
22 |
print(docs[0].page_content)
|
23 |
-
if (len(docs) > 1)
|
|
|
24 |
return docs[0].page_content
|
25 |
|
26 |
description = """<a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://platform.openai.com/'>OpenAI</a> API with Whisper 1 foundation model."""
|
|
|
20 |
docs = loader.load()
|
21 |
print(url)
|
22 |
print(docs[0].page_content)
|
23 |
+
if (len(docs) > 1)
|
24 |
+
print(docs[1].page_content)
|
25 |
return docs[0].page_content
|
26 |
|
27 |
description = """<a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://platform.openai.com/'>OpenAI</a> API with Whisper 1 foundation model."""
|