Spaces:
Runtime error
Runtime error
Sharathhebbar24
commited on
Commit
•
c201c90
1
Parent(s):
1b98c5d
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import os
|
|
2 |
import streamlit as st
|
3 |
from langchain.llms import HuggingFaceHub
|
4 |
from llm import similarity
|
5 |
-
|
6 |
|
7 |
from models import return_models, return_text2text_generation_models, return_task_name, return_text_generation_models
|
8 |
class LLM_Langchain():
|
@@ -109,6 +109,7 @@ class LLM_Langchain():
|
|
109 |
label="Upload PDF file",
|
110 |
disabled=self.uploader_visibility
|
111 |
)
|
|
|
112 |
|
113 |
if self.file_upload_status is not None:
|
114 |
self.pdf_file_path = f"assets/{self.file_upload_status.name}"
|
|
|
2 |
import streamlit as st
|
3 |
from langchain.llms import HuggingFaceHub
|
4 |
from llm import similarity
|
5 |
+
from file_manipulation import make_directory_if_not_exists
|
6 |
|
7 |
from models import return_models, return_text2text_generation_models, return_task_name, return_text_generation_models
|
8 |
class LLM_Langchain():
|
|
|
109 |
label="Upload PDF file",
|
110 |
disabled=self.uploader_visibility
|
111 |
)
|
112 |
+
make_directory_if_not_exists('assets/')
|
113 |
|
114 |
if self.file_upload_status is not None:
|
115 |
self.pdf_file_path = f"assets/{self.file_upload_status.name}"
|