antoinette-f commited on
Commit
dd979ef
·
verified ·
1 Parent(s): 84890d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import pandas as pd
4
 
5
  client = InferenceClient("microsoft/phi-4")
6
 
7
- clothing_df = pd.read_csv("clothing_daatabase.csv")
8
 
9
  def respond(message,history): #function to return the history of messages sent
10
  messages = [{"role": "system", "content": "You are a clothing assistant. Based on the the user's request, suggest suitable clothing items from the database and return their image paths"}]
@@ -27,6 +27,8 @@ chatbot = gr.ChatInterface(respond, type="messages", title = "Capstone project")
27
  #Load the clothing database
28
  clothing_df = pd.read_csv("clothing_databse.csv")
29
 
 
 
30
  def search_clothing(weather=None, formality=None):
31
  results = clothing_df
32
  if weather:
 
4
 
5
  client = InferenceClient("microsoft/phi-4")
6
 
7
+ clothing_df = pd.read_csv("clothing_database.csv") #load clothing database
8
 
9
  def respond(message,history): #function to return the history of messages sent
10
  messages = [{"role": "system", "content": "You are a clothing assistant. Based on the the user's request, suggest suitable clothing items from the database and return their image paths"}]
 
27
  #Load the clothing database
28
  clothing_df = pd.read_csv("clothing_databse.csv")
29
 
30
+ def
31
+
32
  def search_clothing(weather=None, formality=None):
33
  results = clothing_df
34
  if weather: