ofermend commited on
Commit
a427753
1 Parent(s): 2b8dfc5
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -3,23 +3,21 @@ from omegaconf import OmegaConf
3
  import streamlit as st
4
  import os
5
  from PIL import Image
6
- import re
7
  import sys
8
- import datetime
9
  from dotenv import load_dotenv
 
10
 
11
  from pydantic import Field, BaseModel
12
  from vectara_agent.agent import Agent, AgentStatusType
13
  from vectara_agent.tools import ToolsFactory
14
  from vectara_agent.tools_catalog import rephrase_text
15
 
16
-
17
  teaching_styles = ['Inquiry-based', 'Socratic', 'traditional']
18
  languages = {'English': 'en', 'Spanish': 'es', 'French': 'fr', 'German': 'de', 'Arabic': 'ar', 'Chinese': 'zh-cn',
19
  'Hebrew': 'he', 'Hindi': 'hi', 'Italian': 'it', 'Japanese': 'ja', 'Korean': 'ko', 'Portuguese': 'pt'}
20
  initial_prompt = "How can I help you today?"
21
 
22
- load_dotenv(override=True)
23
 
24
  def create_tools(cfg):
25
 
 
3
  import streamlit as st
4
  import os
5
  from PIL import Image
 
6
  import sys
7
+
8
  from dotenv import load_dotenv
9
+ load_dotenv(override=True)
10
 
11
  from pydantic import Field, BaseModel
12
  from vectara_agent.agent import Agent, AgentStatusType
13
  from vectara_agent.tools import ToolsFactory
14
  from vectara_agent.tools_catalog import rephrase_text
15
 
 
16
  teaching_styles = ['Inquiry-based', 'Socratic', 'traditional']
17
  languages = {'English': 'en', 'Spanish': 'es', 'French': 'fr', 'German': 'de', 'Arabic': 'ar', 'Chinese': 'zh-cn',
18
  'Hebrew': 'he', 'Hindi': 'hi', 'Italian': 'it', 'Japanese': 'ja', 'Korean': 'ko', 'Portuguese': 'pt'}
19
  initial_prompt = "How can I help you today?"
20
 
 
21
 
22
  def create_tools(cfg):
23