Skip to content

Commit

Permalink
Fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Infinite-Null committed Jan 20, 2024
1 parent 9f729ff commit 3bc14d0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Screens/HomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function EachCard({title, discreption, navigation, route, image, color, delay})
<Animatable.View
animation={'fadeInUp'}
delay={delay}
duration={500}
duration={300}
style={{
flex: 1,
backgroundColor: color,
Expand Down
21 changes: 17 additions & 4 deletions Screens/ImageChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ export default function ImageChat({navigation}) {
])
setvalue('');
setloading(true);
const response = await GetImageResponse(images,val);
setchat((history)=>[...history,
{role:'model', parts:response}
])
try{
const response = await GetImageResponse(images,val);
setchat((history)=>[...history,
{role:'model', parts:response}
])
}catch (e) {

}
setloading(false);
}
useEffect(() => {
Expand Down Expand Up @@ -112,11 +116,20 @@ export default function ImageChat({navigation}) {
<View style={{
flex:1,
backgroundColor:'#1e1b38',
width:windowWidth,
}}>
<ImageView visible={visible} setvisible={setVisible} image={image}/>
<TopHeader navigation={navigation} text={'Image'} righticon={
<TouchableOpacity onPress={()=>{
setVisible(true)
}} style={{
backgroundColor:'rgb(42,82,176)',
height:40,
width:40,
alignItems:'center',
justifyContent:'center',
borderRadius:10,
elevation:10
}}>
<FontAwesomeIcon icon={faEye} style={{
color:'white',
Expand Down

0 comments on commit 3bc14d0

Please sign in to comment.