File size: 378 Bytes
a6951cb
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import streamlit as st
from agents.farmer_agent import farmer_agent

def show():
    st.title("Farmer Registration")
    farm_name = st.text_input("Farm Name")
    crop_name = st.text_input("Crop Name")
    if st.button("Register"):
        query = f"Register farmer '{farm_name}' with crop '{crop_name}'."
        response = farmer_agent.chat(query)
        st.write(response)