Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def invoke(url):
|
|
19 |
)
|
20 |
docs = loader.load()
|
21 |
print(len(docs))
|
22 |
-
return docs[len(docs) - 1].page_content
|
23 |
|
24 |
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."""
|
25 |
|
|
|
19 |
)
|
20 |
docs = loader.load()
|
21 |
print(len(docs))
|
22 |
+
return docs[len(docs) - 1].page_content[0:500]
|
23 |
|
24 |
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."""
|
25 |
|