Spaces:
Runtime error
Runtime error
merged
Browse files- RBotReloaded.py +0 -1
- agent_llama_ui.py +3 -2
- requirements.txt +1 -1
RBotReloaded.py
CHANGED
@@ -277,7 +277,6 @@ AI: Calculator("factorial(5)")
|
|
277 |
### CURRENT CONVERSATION:
|
278 |
SYS: Today is {str(datetime.now().date())},
|
279 |
SYS: You are {AI_NAME} a smart and helpful AI assistant with access to external tools and knowledge.
|
280 |
-
SYS: Please reply to the user with a truth and useful response, if you do not know the answer or you are not sure or you need more recent informations, delegate the task replying with ActionName(action_input) with the most appropriate of the available actions (you call them like functions).
|
281 |
{formatted_history}
|
282 |
SYS: Please reply next user message directly or invoking a valid action from the following list:
|
283 |
{self.tools_prompt()}
|
|
|
277 |
### CURRENT CONVERSATION:
|
278 |
SYS: Today is {str(datetime.now().date())},
|
279 |
SYS: You are {AI_NAME} a smart and helpful AI assistant with access to external tools and knowledge.
|
|
|
280 |
{formatted_history}
|
281 |
SYS: Please reply next user message directly or invoking a valid action from the following list:
|
282 |
{self.tools_prompt()}
|
agent_llama_ui.py
CHANGED
@@ -198,7 +198,7 @@ def render_simple_chat():
|
|
198 |
unset_image_gen_guide()
|
199 |
st.experimental_rerun()
|
200 |
else:
|
201 |
-
image_gen_guide = st.sidebar.file_uploader("Drag and Drop an image
|
202 |
if image_gen_guide:
|
203 |
set_image_gen_guide(image_gen_guide)
|
204 |
st.sidebar.success(f"File '{image_gen_guide.name}' set as image generation guidance.")
|
@@ -212,8 +212,9 @@ def render_simple_chat():
|
|
212 |
generated_files = get_generated_files()
|
213 |
st.sidebar.subheader("Generated Files")
|
214 |
for file_path in generated_files:
|
|
|
215 |
st.write("---")
|
216 |
-
st.
|
217 |
st.image(file_path)
|
218 |
|
219 |
i = 0
|
|
|
198 |
unset_image_gen_guide()
|
199 |
st.experimental_rerun()
|
200 |
else:
|
201 |
+
image_gen_guide = st.sidebar.file_uploader("Drag and Drop an optional image to use as Guidance", type=["jpg", "png"])
|
202 |
if image_gen_guide:
|
203 |
set_image_gen_guide(image_gen_guide)
|
204 |
st.sidebar.success(f"File '{image_gen_guide.name}' set as image generation guidance.")
|
|
|
212 |
generated_files = get_generated_files()
|
213 |
st.sidebar.subheader("Generated Files")
|
214 |
for file_path in generated_files:
|
215 |
+
file_name = file_path.split("/")[-1].split("\\")[-1]
|
216 |
st.write("---")
|
217 |
+
st.markdown(f"[{file_name}]({file_path})", unsafe_allow_html=True)
|
218 |
st.image(file_path)
|
219 |
|
220 |
i = 0
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
torch
|
2 |
-
torchaudio
|
3 |
torchvision
|
4 |
accelerate
|
5 |
aiohttp
|
|
|
1 |
torch
|
2 |
+
torchaudio
|
3 |
torchvision
|
4 |
accelerate
|
5 |
aiohttp
|